import loadable from '@loadable/component';
import Progress from '@/platform/components/progress/Progress';
import React from 'react';


export default class LoadComponentUtil {
    /**
      * 加载组件
      * @param com 
      * @returns 
      */
    static load(component: any) {
        return loadable(() => component, {
            fallback: React.createElement(
                Progress
            )
        });
    }
}
